﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteAdm.Master" AutoEventWireup="true"
    CodeBehind="ListaServicoMedico.aspx.cs" Inherits="AgileSaude.Web.Admin.ListaServicoMedico" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <!-- TÍTULO DA PÁGINA -->
    <div class="area-titulo container-fluid">
        <div class="container">
            <h2 class="titulo">
                <asp:Literal ID="litMedico" runat="server"></asp:Literal></h2>
        </div>
    </div>
    <!-- FIM DO TÍTULO -->
    <div class="container">
        <div class="row">
            <asp:LinkButton ID="btnNovo" runat="server" class="btn btn-info btn-md" Text="&#xf067; Adicionar Serviço"
                OnClick="btnNovo_Click" />
            <asp:LinkButton ID="btnVoltar" runat="server" class="btn btn-md btn-warning" Text="&#xf060; Voltar"
                PostBackUrl="~/Admin/ListaMedicos.aspx"></asp:LinkButton>
        </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="gvServicos" runat="server" AutoGenerateColumns="False" SkinID="CadastrosGrid"
                    CssClass="table table-striped table-bordered table-hover" DataKeyNames="IdMedico"
                    AllowSorting="true" OnRowCommand="gvServicos_RowCommand" OnSorting="gvServicos_Sorting"
                    OnRowDataBound="gvServicos_RowDataBound" PageSize="15" OnPageIndexChanging="gvServicos_PageIndexChanging"
                    AllowPaging="true">
                    <Columns>
                        <asp:BoundField DataField="NomeServico" HeaderText="Servico" SortExpression="NomeServico">
                            <ItemStyle HorizontalAlign="Left" BorderColor="White" Width="25%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="PrecoCusto" HeaderText="Preço de Custo" SortExpression="PrecoCusto">
                            <ItemStyle HorizontalAlign="Left" BorderColor="White" Width="18%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MargemContrib" HeaderText="Margem Contrib" SortExpression="MargemContrib">
                            <ItemStyle HorizontalAlign="Left" BorderColor="White" Width="18%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="PrecoVenda" HeaderText="Preço de Venda" SortExpression="PrecoVenda">
                            <ItemStyle HorizontalAlign="Left" BorderColor="White" Width="18%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Opções">
                            <ItemStyle HorizontalAlign="Center" BorderColor="White" Width="10%" />
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkEditar" class="btn btn-acoes" runat="server" CommandName="Editar"
                                    ToolTip="Editar"><i class="fa fa-pencil fa-lg"></i></asp:LinkButton>
                                <asp:LinkButton ID="lnkDeletar" class="btn btn-acoes-danger" runat="server" CommandName="Deletar"
                                    ToolTip="Deletar" OnClientClick="return confirm('Deseja realmente Deletar?');"
                                    OnClick="lnkDeletar_Click"><i class="fa fa-trash-o fa-lg"></i></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
